home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / jazclib1.arc / JZINTDIR.C < prev    next >
Text File  |  1986-07-17  |  721b  |  22 lines

  1. #include <jzdirect.h>
  2. /*
  3. ┌────────────────────────────────────────────────────────────────────────────┐
  4. │jzintdir                                     │
  5. │Initialize the directory stack structure before the first call to jzpushdir │
  6. │Synopsis:                                     │
  7. │  jzintdir(&whead);                                 │
  8. │  jzpshdir(&whead);                                 │
  9. │  chdir("\\");                                                              │
  10. │  ...                                         │
  11. │  jzpshdir(&whead);                                 │
  12. │  jzpopdir(&whead);                                 │
  13. └────────────────────────────────────────────────────────────────────────────┘
  14. */
  15.  
  16. jzintdir(fhead)
  17. TDIRHEAD *fhead;
  18. {
  19.   fhead->numitems = 0;            /* init stack to zero items */
  20.   fhead->first = fhead->last = 0;    /* init pointers */
  21. }
  22.